{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "3efb0736",
   "metadata": {},
   "source": [
    "# 尝试用python打印一个课表  \n",
    "*吐槽一句：一周三天早八的本人真的得秃头(((φ(◎ロ◎;)φ)))*"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "f94af05c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "       节次       ｜      周一       |      周二       |      周三       |      周四       |      周五       |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "       1～2       ｜                 |                 |    体育篮球     |    大学英语     |     AI应用      |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "       3～5       ｜    创业实践     |                 |    毛概实践     |   Python语言    |    网站运营     |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "       6～7       ｜    写作训练     |                 |                 |                 |                 |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "       8～9       ｜                 |                 |                 |  广告文案写作   |                 |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "      9～10       ｜                 |                 |                 |                 |                 |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "      10～11      ｜                 |    大学英语     |                 |                 |                 |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "      12～13      ｜    毛概理论     | 法语语言与文化  |                 |                 |                 |）\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n",
      "      13～14      ｜    毛概理论     |                 |                 |                 |                 |\n",
      "________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n"
     ]
    }
   ],
   "source": [
    "print(\"_\"*280)\n",
    "print(\"{:^16}｜{:^15}|{:^15}|{:^15}|{:^15}|{:^15}|\"\n",
    "      .format(\"节次\",\"周一\",\"周二\",\"周三\",\"周四\",\"周五\"))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^17}|{:^17}|{:^13}|{:^13}|{:^15}|\"\n",
    "      .format(\"1～2\",\"\",\"\",\"体育篮球\",\"大学英语\",\"AI应用\",))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^13}|{:^17}|{:^13}|{:^15}|{:^13}|\"\n",
    "      .format(\"3～5\",\"创业实践\",\"\",\"毛概实践\",\"Python语言\",\"网站运营\",))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^13}|{:^17}|{:^17}|{:^17}|{:^17}|\"\n",
    "      .format(\"6～7\",\"写作训练\",\"\",\"\",\"\",\"\",))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^17}|{:^17}|{:^17}|{:^11}|{:^17}|\"\n",
    "      .format(\"8～9\",\"\",\"\",\"\",\"广告文案写作\",\"\",))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^17}|{:^17}|{:^17}|{:^17}|{:^17}|\"\n",
    "      .format(\"9～10\",\"\",\"\",\"\",\"\",\"\",\"\"))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^17}|{:^13}|{:^17}|{:^17}|{:^17}|\"\n",
    "      .format(\"10～11\",\"\",\"大学英语\",\"\",\"\",\"\"))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^13}|{:^10}|{:^17}|{:^17}|{:^17}|\"\n",
    "      .format(\"12～13\",\"毛概理论\",\"法语语言与文化\",\"\",\"\",\"\"))\n",
    "\n",
    "print(\"_\"*280)\n",
    "print(\"{:^17}｜{:^13}|{:^17}|{:^17}|{:^17}|{:^17}|\"\n",
    "      .format(\"13～14\",\"毛概理论\",\"\",\"\",\"\",\"\"))\n",
    "\n",
    "print(\"_\"*280)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5beaeb98",
   "metadata": {},
   "source": [
    "* 是之前提到过的变量可以相乘的规则用于这个组成的线\n",
    "```\n",
    "print(\"_\"*280)\n",
    "```\n",
    "* 观察发现里面的数字是每个间断的距离\n",
    "```\n",
    "\"{:^17}｜{:^17}|{:^17}|{:^13}|{:^13}|{:^15}|\"\n",
    "```\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "35acd4e4",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
